import Vue from 'vue'
import VueRouter from 'vue-router'
//import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: "Tv",
    component: () => import("../views/Tv.vue")
  },
  {
    path: '/music',
    name: "Music",
    component: () => import("../views/Music.vue")
  },
  {
    path: '/book',
    name: "Book",
    component: () => import("../views/Book.vue")
  },
  {
    path: '/chat',
    name: "Chat",
    component: () => import("../views/Chat.vue")
  },
  {
    path: '/tv2/:id',
    name: 'Tv2',
    component: () => import('../views/Tv2.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
